Skip to content

Commit a5e5387

Browse files
committed
Update token ignore path, revert es config, starter docs
1 parent 0eb3b52 commit a5e5387

File tree

5 files changed

+110
-79
lines changed

5 files changed

+110
-79
lines changed

bin/styles.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ const main = async (modules) => {
6666
* @type {Source} https://github.com/paulmillr/chokidar
6767
*/
6868
const watcher = chokidar.watch(globs, {
69-
ignored: path.join(process.env.PWD, tokens.options().output.replace(/"/g, '')),
69+
ignored: tokens.options().output.replace(/"/g, ''),
7070
usePolling: false,
7171
awaitWriteFinish: {
7272
stabilityThreshold: 750

config/global.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ module.exports = {
4545
{
4646
__dirname: 'config',
4747
files: [
48-
'rollup.mjs',
48+
'rollup.js',
4949
'sass.js',
5050
'tailwindcss.js',
5151
'tokens.js'

config/make.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,13 +144,13 @@ module.exports = {
144144
messages: {
145145
style: [
146146
'\n',
147-
`${alerts.styles} Include the ${alerts.str.string('{{ pattern }}')} styleheet in your main Sass entrypoint. `,
148-
`To create an independent distribution (optional) add the ${alerts.str.string('{{ pattern }}')} styleheet to your Sass configuration.`,
147+
`${alerts.styles} Include the ${alerts.str.string('{{ pattern }}')} stylesheet in your main Sass entry point. `,
148+
`To create an independent distribution (optional) add the ${alerts.str.string('{{ pattern }}')} stylesheet to your Sass configuration.`,
149149
'\n'
150150
],
151151
script: [
152152
'\n',
153-
`${alerts.scripts} Import the ${alerts.str.string('{{ pattern }}')} script into your main JavaScript entrypoint file and create a public function for it in the default class. `,
153+
`${alerts.scripts} Import the ${alerts.str.string('{{ pattern }}')} script into your main JavaScript entry point file and create a public function for it in the default class. `,
154154
`To create an independent distribution (optional) add the ${alerts.str.string('{{ pattern }}')} script to your Rollup configuration.`,
155155
'\n'
156156
]

config/scaffold/rollup.mjs renamed to config/scaffold/rollup.js

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@
22
* Dependencies
33
*/
44

5-
import babel from '@rollup/plugin-babel'; // Transpile source code.
6-
import nodeResolve from '@rollup/plugin-node-resolve'; // Locate modules using the Node resolution algorithm, for using third party modules in node_modules.
7-
import replace from '@rollup/plugin-replace'; // Replace content while bundling.
5+
const nodeResolve = require('@rollup/plugin-node-resolve'); // Locate modules using the Node resolution algorithm, for using third party modules in node_modules.
6+
const replace = require('@rollup/plugin-replace'); // Replace content while bundling.
87

98
/**
109
* Base module configuration. Refer to the package for details on the available options.
@@ -30,10 +29,6 @@ let plugins = [
3029
replace({
3130
'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV)
3231
}),
33-
babel.babel({
34-
exclude: 'node_modules/**',
35-
babelHelpers: 'bundled'
36-
}),
3732
nodeResolve.nodeResolve({
3833
browser: true,
3934
customResolveOptions: {
@@ -47,7 +42,7 @@ let plugins = [
4742
*
4843
* @type {Array}
4944
*/
50-
export default [
45+
module.exports = [
5146
{
5247
input: `${process.env.PWD}/src/js/default.js`,
5348
output: [

0 commit comments

Comments
 (0)