-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #160 from collective/refactor-development
Update development files
- Loading branch information
Showing
107 changed files
with
280 additions
and
237 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,20 @@ | ||
exclude Makefile *.cfg *.in *.nix *.sh *.conf *.js *.json Procfile .jshintrc *-mxdev.txt .installed.txt | ||
exclude Makefile *.cfg *.in *.nix *.sh *.conf *.js *.json Procfile .jshintrc *-mxdev.txt .installed.txt *.yaml *.ini | ||
global-exclude *.pyc | ||
global-exclude *.yarn-integrity | ||
global-exclude cypress.json | ||
global-exclude cypress/**/* | ||
global-exclude node_modules/** | ||
global-exclude resources/** | ||
include *.py | ||
include *.rst | ||
include *.txt | ||
include .coveragerc | ||
include buildout.cfg | ||
include *.yaml | ||
include mx.ini | ||
recursive-include images *.gif | ||
recursive-include docs *.GPL | ||
recursive-include docs *.bugfix | ||
recursive-include docs *.gif | ||
recursive-include docs *.md | ||
recursive-include docs *.png | ||
recursive-include docs *.rst | ||
prune src/collective/taxonomy/javascripts/node_modules/**/* | ||
graft src | ||
exclude src/collective/taxonomy/javascripts/build/messages/src/js/components/*.json | ||
global-exclude *.pyc | ||
global-exclude *.yarn-integrity | ||
global-exclude cypress.json | ||
global-exclude cypress/**/* | ||
global-exclude node_modules/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
...ollective/taxonomy/javascripts/.gitignore → resources/.gitignore
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
yarn-error.log | ||
cypress/screenshots/ | ||
stamp-yarn |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Taxonomy JS Development | ||
|
||
YARN ?= npx yarn | ||
|
||
|
||
.PHONY: install | ||
stamp-yarn install: | ||
$(YARN) install | ||
touch stamp-yarn | ||
|
||
|
||
.PHONY: | ||
build: stamp-yarn | ||
$(YARN) run build | ||
|
||
|
||
.PHONY: | ||
serve: stamp-yarn | ||
$(YARN) run start | ||
|
||
|
||
.PHONY: | ||
test: stamp-yarn | ||
$(YARN) run test | ||
|
||
|
||
.PHONY: | ||
lint: stamp-yarn | ||
$(YARN) run lint |
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
var path = require('path') | ||
var webpack = require('webpack') | ||
|
||
module.exports = () => { | ||
const config = { | ||
devtool: 'cheap-module-source-map', // https://webpack.js.org/configuration/devtool | ||
entry: { | ||
edittaxonomydata: ['./src/js/index'], | ||
}, | ||
output: { | ||
path: path.join(__dirname, '../src/collective/taxonomy/static/js'), | ||
filename: '[name].js', | ||
}, | ||
plugins: [ | ||
new webpack.IgnorePlugin(/^(buffertools)$/), | ||
new webpack.optimize.OccurrenceOrderPlugin(), | ||
new webpack.DefinePlugin({ | ||
'process.env.NODE_ENV': JSON.stringify('production') | ||
}), | ||
new webpack.optimize.UglifyJsPlugin({ | ||
compressor: { | ||
pure_getters: true, | ||
unsafe: true, | ||
unsafe_comps: true, | ||
screw_ie8: true, | ||
warnings: false | ||
} | ||
}) | ||
], | ||
module: { | ||
loaders: [{ | ||
test: /\.js$/, | ||
loaders: ['babel-loader'], | ||
exclude: /node_modules/, | ||
include: path.join(__dirname, 'src'), | ||
}] | ||
} | ||
}; | ||
|
||
console.log(JSON.stringify(config, null, 4)); | ||
|
||
return config; | ||
|
||
} |
Oops, something went wrong.